import request from '@/utils/request'
export const getList = (data) => {
    return request({
        url: '/role/get_role_list',
        method: 'post',
        data: data
    })
}
export const getAllRoles = (params) => {
    return request({
        url: '/role/show_role_list',
        method: 'get',
        params
    })
}
export const del = (data) => request({
    url: '/role/del',
    method: 'post',
    data: data
})
export const add = (data) => request({
    url: '/role/add',
    method: 'post',
    data: data
})
export const update = (data) => request({
    url: '/role/edit',
    method: 'post',
    data: data
})
export const updateRoles = (data) => request({
    url: '/role/edit_role',
    method: 'post',
    data: data
})